<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="./static/js/jquery-1.11.3.min.js"></script>
</head>
<body>
	请输入要删除数据的id:<input id="id" />
	<button id="del">删除</button>
	
<script type="text/javascript">
	$("#del").on("click",function(){
		$.ajax({
			url:"user",
			data:{
				"flag":"del",
				"id":$("#id").val()
			},
			success:function(data){
				alert(data);
			}
		})
	})
	
</script>
</body>
</html>